const Mock = require('mockjs');
const result =Mock.mock({
    "datas|50":[{
        title: '@ctitle(10)',
        author: '@cname',
        "authorId|1-20":0,
        content: "@cparagraph(7,28)",
        "category|1-12": 0,
        img: "@Image('100x100','@color','小甜甜')",
    }]
}).datas;

const Magazine=require('../models/magazine');
Magazine.bulkCreate(result)